package com.liuxvru.project.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import com.liuxvru.common.annotation.Excel;
import com.liuxvru.common.core.domain.BaseEntity;

/**
 * 发布对象 pro_release
 *
 * @author liuxvru
 * @date 2025-04-17
 */
@Data
@TableName(value = "pro_release")
public class Release extends BaseEntity implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 发布ID */
    @TableId(value = "release_id", type = IdType.AUTO)
    private Long releaseId;

    /** 关联的项目ID */
    @Excel(name = "关联的项目ID")
    @TableField(value = "project_id")
    private Long projectId;

    /** 发布标题 */
    @Excel(name = "发布标题")
    @TableField(value = "title")
    private String title;

    /** 发布描述 */
    @Excel(name = "发布描述")
    @TableField(value = "description")
    private String description;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "start_date")
    private Date startDate;

    /** 发布截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "due_date")
    private Date dueDate;

    /** 发布状态 */
    @Excel(name = "发布状态")
    @TableField(value = "status")
    private String status;

    /** 发布负责人ID */
    @Excel(name = "发布负责人ID")
    @TableField(value = "owner_id")
    private Long ownerId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "created_at")
    private Date createdAt;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    @TableField(value = "created_by")
    private Long createdBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "updated_at")
    private Date updatedAt;

    /** 更新人ID */
    @Excel(name = "更新人ID")
    @TableField(value = "updated_by")
    private Long updatedBy;


}
